<script setup>
import Header from './Header.vue'
import Main from './Main.vue'
import { onMounted } from 'vue'
import { useRoute,useRouter } from 'vue-router';

const route = useRoute()
const router = useRouter();
onMounted(() => {
  console.log(route.path);
  if(route.path === '/' || route.path === '/index')
  router.push('/index/recommend')
});

</script>

<template>
  <div class="layout"> 
    <Header/>
    <Main />
  </div>
</template>

<style scoped>
</style>